package com.example.hello.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Advertisement {
    private Long adId;
    private String title;
    private String description;
    private String imageUrl;
    private String linkUrl;
    private Integer positionId;
    private String positionName; // 非数据库字段，用于展示
    
    @JsonFormat(pattern = "HH:mm:ss")
    private Date startTime;
    
    @JsonFormat(pattern = "HH:mm:ss")
    private Date endTime;
    
    private Integer priority;
    private Integer status; // 0-待发布，1-已发布，2-已下线
    private Long createdBy;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
    
    // 关联对象
    private User creator;
} 